package com.nlp.visualization.controller.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author LXM
 * @Title: NLPVisualizationTools
 * @Description:
 * @date 2018/5/11下午4:42
 */
@Controller
@RequestMapping("/backend")
public class BackendViewController {

    @RequestMapping("/index")
    public String toBackEndIndex(Model model) {

        model.addAttribute("name", "管理员");
        return "backend/index";
    }


    @RequestMapping("/console")
    public String toConsole(Model model) {
        return "backend/console";
    }


}
